<?php
$this->breadcrumbs = array(
    'Brand Details' => array('index'),
    $model->brand_id,
);

$this->menu = array(
    array('label' => 'List BrandDetails', 'url' => array('index')),
    array('label' => 'Create BrandDetails', 'url' => array('create')),
    array('label' => 'Update BrandDetails', 'url' => array('update', 'id' => $model->brand_id)),
    array('label' => 'Delete BrandDetails', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->brand_id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => 'Manage BrandDetails', 'url' => array('admin')),
);
?>
<?php /*
  $this->widget('zii.widgets.CDetailView', array(
  'data'=>$model,
  'attributes'=>array(
  'brand_id',
  'brand_details',
  'brand_email',
  'created_by',
  'created_date',
  'updated_by',
  'updated_date',
  ),
  ));
 */ ?>
<table width="940" border="0" cellspacing="0" cellpadding="0" style="padding-left:50px;background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/news.png) left top no-repeat;">
    <tr>
        <td colspan="2" style="height:100px;">&nbsp;</td>
    </tr>
    <tr>
        <td width="230" valign="top"><table id="Table_" width="230" height="186" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_01.png" width="31" height="33" alt="" /></td>
                    <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_02.png) repeat-x;" height="33"></td>
                    <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_03.png" width="33" height="33" alt="" /></td>
                </tr>
                <tr >
                    <td width="31" height="120" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_04.png) repeat-y;">&nbsp;</td>
                    <td align="center" valign="middle" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_05.png) repeat left top;"><img src="<?php echo Yii::app()->request->baseUrl . $modelHeader->brand_image_path; ?>" width="120" /></td>
                    <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_06.png) repeat-y;"  width="31"></td>
                </tr>
                <tr>
                    <td  width="31" height="33" ><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_07.png" width="31" height="33" alt="" /></td>
                    <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_08.png) repeat-x;" height="33"></td>
                    <td width="33" height="33"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_09.png" width="33" height="33" alt="" /></td>
                </tr>
            </table>
            <table id="Table_2" width="230" height="121" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_01.png" width="31" height="33" alt="" /></td>
                    <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_02.png) repeat-x;" height="33"></td>
                    <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_03.png" width="33" height="33" alt="" /></td>
                </tr>
                <tr >
                    <td width="31" height="55" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_04.png) repeat-y;">&nbsp;</td>
                    <td align="center" valign="top" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_05.png) repeat left top;">
                        EMAIL :
                        <?php
                        if ($model->brand_email) {
                            echo "<a href='mailto:'>" . $model->brand_email . "</a>";
                        }
                        ?><br />
                        <br />
                <style type="text/css">
                    .button {
                        width:120px;
                        height:21px;
                        display:block;
                        background-image:url(<?php echo Yii::app()->request->baseUrl; ?>/images/reference2.png);
                        background-position: top;
                    }
                    .button:hover{
                        width:120px;
                        background-position: bottom;
                        height:21px;
                        background-image:url(<?php echo Yii::app()->request->baseUrl; ?>/images/reference2.png) no repeat;
                    }
                </style>
                <a href="<? echo "../ref/index/" . $modelHeader->brand_id ?>" class="button"></a>
        </td>
        <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_06.png) repeat-y;"  width="31"></td>
    </tr>
    <tr>
        <td  width="31" height="33" ><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_07.png" width="31" height="33" alt="" /></td>
        <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_08.png) repeat-x;" height="33"></td>
        <td width="33" height="33"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_09.png" width="33" height="33" alt="" /></td>
    </tr>
</table>
</td>
<td width="710" valign="top">
    <table id="Table_01" width="700" height="255" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_01.png" width="31" height="33" alt="" /></td>
            <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_02.png) repeat-x;" height="33"></td>
            <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_03.png" width="33" height="33" alt="" /></td>
        </tr>
        <tr >
            <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_04.png) repeat-y;" width="31">&nbsp;</td>
            <td align="left" valign="top" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_05.png) repeat left top;">
                <div>
                    <?php echo $model->brand_details; ?>
                    </div>
                </td>
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_06.png) repeat-y;"  width="31"></td>
            </tr>
            <tr>
                <td  width="31" height="33" ><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_07.png" width="31" height="33" alt="" /></td>
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_08.png) repeat-x;" height="33"></td>
                <td width="33" height="33"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_09.png" width="33" height="33" alt="" /></td>
            </tr>
        </table>


        <table id="Table_3" width="700" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_01.png" width="31" height="33" alt="" /></td>
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_02.png) repeat-x;" height="33"></td>
                <td><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_03.png" width="33" height="33" alt="" /></td>
            </tr>
            <tr >
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_04.png) repeat-y;" width="31">&nbsp;</td>
                <td align="left" valign="top" style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_05.png) repeat left top;"><strong>PRODUCT</strong><br />
                    <ul id="mycarousel" class="jcarousel-skin-tango">
                    <?php
                        $imageDir =  Yii::app()->params['imageUploadPath']."/images/product/" . $modelHeader->brand_id;
                        if (is_dir($imageDir)) {
                            $objOpen = opendir($imageDir);
                            while (($file = readdir($objOpen)) !== false) {
                                if ($this->isImageFilter($file)) {
                                    echo "<li><img src='" . Yii::app()->request->baseUrl . "/upload/images/product/" . $modelHeader->brand_id . "/" . $file . "' width='100%' hight='100%'/></li>";
                                }
                            }
                        }
                    ?>
                    </ul>
                </td>
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_06.png) repeat-y;"  width="31"></td>
            </tr>
            <tr>
                <td  width="31" height="33" ><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_07.png" width="31" height="33" alt="" /></td>
                <td style="background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_08.png) repeat-x;" height="33"></td>
                <td width="33" height="33"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tmp_09.png" width="33" height="33" alt="" /></td>
            </tr>
        </table>

        <br />
        <br />
    </td>
    </tr>
    </table>

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.jcarousel.min.js"></script>
    <!--
      jCarousel skin stylesheet
    -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/skin.css" />

<script type="text/javascript">

    jQuery(document).ready(function() {
        jQuery('#mycarousel').jcarousel();
    });
</script>
